package com.smart.list.dao;

import com.smart.list.entity.Task;

/**
 * @author dninkovi
 *Interface for TaskDao layer
 */
public interface TaskDao {
	/**
	 * @param task
	 * @return status of creation
	 * create task into database
	 */
	public boolean createTask(Task task);

	/**
	 * @return Task
	 * Read task from database
	 */
	public Task readTask(long id);
	
	/**
	 * @param task
	 * @return status of update
	 */
	public boolean updateTask(Task task);
	
	/**
	 * @param task
	 * @return
	 */
	public boolean deleteTask(Task task);
	
}
